//
//  Verificationlogic.m
//  WeCommunity
//
//  Created by mac on 2017/6/20.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import "Verificationlogic.h"

@implementation Verificationlogic

#pragma mark - 昵称
+ (BOOL)checkNickName:(NSString *)nickname
{
    NSString *nicknameRegex = @"[\\u4e00-\\u9fa5A-Za-z0-9_-]{2,12}";
    NSPredicate *passWordPredicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",nicknameRegex];
    return [passWordPredicate evaluateWithObject:nickname];
}

@end
